import request from '@/utils/request'

// 查询教练等级列表
export function listCoachLevel(query) {
  return request({
    url: '/course/CoachLevel/list',
    method: 'get',
    params: query
  })
}

// 查询教练等级详细
export function getCoachLevel(id) {
  return request({
    url: '/course/CoachLevel/view/' + id,
    method: 'get'
  })
}

// 新增教练等级
export function addCoachLevel(data) {
  return request({
    url: '/course/CoachLevel/add',
    method: 'post',
    data: data
  })
}

// 修改教练等级
export function updateCoachLevel(data) {
  return request({
    url: '/course/CoachLevel/update',
    method: 'put',
    data: data
  })
}

// 删除教练等级
export function delCoachLevel(id) {
  return request({
    url: '/course/CoachLevel/delete/' + id,
    method: 'delete'
  })
}
